package cn.edu.sdjzu.xg.eagle.dao;

import cn.edu.sdjzu.xg.eagle.entity.authority.Permission;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.Collection;

/**
 * @author tg.si@188.com
 * @todo
 * @since 2024/4/15 15:14
 */
public interface ResourceDao {
    Permission find(Connection connection, Integer id) throws SQLException;

    Collection<Permission> findAll(Connection connection, Integer roleId)
            throws SQLException;
}
